﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Titan.Common
{
    public class CustomConst
    {
        public static DateTime MinDateTime = Convert.ToDateTime("1800-01-01 00:00:01");

        public static DateTime MaxDateTime = Convert.ToDateTime("2999-12-31 23:59:59");

        public const string Int32Regex = @"^([+]?)\\d+$";

    }

    /// <summary>
    /// asset action type
    /// </summary>
    public enum ActionType
    {
        // Summary:
        //     The connection is closed.
        NewAsset = 0,
        //
        // Summary:
        //     The connection is open.
        UpdateAsset = 1,
        //
        // Summary:
        //     The connection object is connecting to the data source. (This value is reserved
        //     for future versions of the product.)
        DeleteAsset = 2,
        //
        // Summary:
        //     The connection object is executing a command. (This value is reserved for
        //     future versions of the product.)
        ImportAsset = 4,
        //
        // Summary:
        //     The connection object is retrieving data. (This value is reserved for future
        //     versions of the product.)
        ImportOrder = 8,
        //
        // Summary:
        //     The connection to the data source is broken. This can occur only after the
        //     connection has been opened. A connection in this state may be closed and
        //     then re-opened. (This value is reserved for future versions of the product.)
        ImportHub = 16,
        TransferAsset = 32,
        ArriveAsset=64,
        InstallAsset=128,
        ReturnAsset=256,
        LendAsset=512,

    }
}
